package com.pcbly.web.action.chart;

import org.jfree.chart.JFreeChart;

import com.pcbly.web.action.BaseAction; 
import com.pcbly.web.components.utils.jfreechart.*; 

@SuppressWarnings("unchecked")
public class JFreeChartAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2436455010451261957L;
	
	private int height=300;
	
	private int width=400; 
	
	private String chartType;
	
	private JFreeChart chart;

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public String getChartType() {
		return chartType;
	}

	public void setChartType(String chartType) {
		this.chartType = chartType;
	}

	public JFreeChart getChart() {
		return chart;
	}

	public void setChart(JFreeChart chart) {
		this.chart = chart;
	}
	
	public String index()throws Exception{
		AbstractChartFont barChart=new PieChart3D();
		chart=barChart.index();
		return super.index();
	}
	
	 
	 

}
